You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(stow-guard): a typed /stow quick records no fresh-restart offer - #298
A typed /stow quick no longer records a fresh-restart offer. A quick save never claims reset-safe (#297), so its offer (#295) could only sit until its 2-hour TTL.
/stow -> offer (unchanged)
/stow full -> offer (unchanged)
/stow quick [...] -> no offer (new; any case, any whitespace)
/stow quickly -> offer (not the quick mode)
Evidence
New test_typed_stow_quick_records_no_offer in tests/fm-stow-guard.test.sh (/stow quick, tab/whitespace-padded, extra args, newline-separated, /stow QUICK). It fails on main ("typed quick prompt 1 recorded an offer") and passes with the fix; all 19 guard tests pass.
tests/fm-stow-cascade.test.sh and tests/fm-stow-guard-prompt-live-e2e.test.sh pass; bin/fm-lint.sh clean on changed shell files.
Merge Danger
Door: two-way Blast Radius: only the stow guard's UserPromptSubmit path for a typed /stow quick; worst case a quick save offers no restart, which it never could use anyway.
Reviewed with sol-loop: 2 rounds with gpt-6.2-sol. Sol verdict: approved
docs/fork-decisions/2026-11-22-typed-stow-restarts-helm.md:7: The records that describe who writes the restart offer still say any typed /stow records one. A typed /stow quick now records none. This record (line 7, "when the lock-holding primary's prompt is /stow itself") and the bin/fm-helm-refresh.sh header (lines 26-30, offer made "when the captain typed /stow") were not updated, and neither was docs/scripts.md line 322. Fix: add the quick exception to these descriptions, or add a dated fork-decision record that amends the typed-stow record, as docs/fork-decisions.md says a later decision should.
Failure scenario: An agent investigating why bin/fm-helm-refresh.sh request refused after the captain typed /stow quick reads the helm-refresh header and the fork record. Both say a typed /stow records the offer, so the agent treats the missing offer as a bug in the prompt hook instead of intended behavior.
Code review: Claude Code /code-review (medium) ran on this diff; each finding is posted inline and was fixed or answered in its thread.
Sol: 2 rounds, gpt-6.2-sol, approved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A typed
/stow quickno longer records a fresh-restart offer. A quick save never claims reset-safe (#297), so its offer (#295) could only sit until its 2-hour TTL.Evidence
test_typed_stow_quick_records_no_offerintests/fm-stow-guard.test.sh(/stow quick, tab/whitespace-padded, extra args, newline-separated,/stow QUICK). It fails on main ("typed quick prompt 1 recorded an offer") and passes with the fix; all 19 guard tests pass.tests/fm-stow-cascade.test.shandtests/fm-stow-guard-prompt-live-e2e.test.shpass;bin/fm-lint.shclean on changed shell files.Merge Danger
Door: two-way
Blast Radius: only the stow guard's UserPromptSubmit path for a typed
/stow quick; worst case a quick save offers no restart, which it never could use anyway.Reviewed with sol-loop: 2 rounds with gpt-6.2-sol. Sol verdict: approved